﻿#ifndef TUNNEL_H
#define TUNNEL_H

#include "sp_env.h"

#define T_STOCK QStringLiteral("到货通知")
#define T_LOSS QStringLiteral("报损通知")

#define TUN_PORT 23323

class Tunnel : public QObject
{
    Q_OBJECT
public:
    explicit Tunnel(QObject *parent = 0);

    void processPendingDatagram();
    QString title,content;

signals:
    void received();

private:
    QUdpSocket *receiver;
};

#endif // TUNNEL_H
